package com.seele.tigerwallet.ui;

import android.app.Activity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.widget.Button;

import com.seele.tigerwallet.R;
import com.seele.tigerwallet.model.UserInfo;
import com.seele.tigerwallet.ui.base.TitleBaseActivity;
import com.seele.tigerwallet.ui.views.Html5Webview;


public class MnemonicActivity extends TitleBaseActivity {


    private Html5Webview mWebView;
    private String url = "https://tw3.niren.org/wallet/v1/help/#/article/%E6%96%B0%E6%89%8B%E5%BF%85%E8%AF%BB/5b488f06380a1f58b6b73e46";

    @Override
    public int getContainerViewId() {
        return R.layout.activity_mnemonic;
    }

    @Override
    protected void initView() {
        setTitle(R.string.what_mnemonic);
        mWebView = $f(R.id.webview);
        String host = UserInfo.get().loginhost;
        if (!TextUtils.isEmpty(host)){
            String url = "https://" + host + "/wallet/v1/help/#/article/%E6%96%B0%E6%89%8B%E5%BF%85%E8%AF%BB/5b488f06380a1f58b6b73e46";
            Log.i(MnemonicActivity.class.getSimpleName(), "url:" + url);
            mWebView.loadUrl(url);
        }
    }
}
